<!-- 网页布局第一准则：多个块级元素纵向排列找标准流，多个块级元素横向排列找浮动。 -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>浮动</title>
    <style>
      div {
        width: 200px;
        height: 200px;
        background-color: blueviolet;
      }
      .right {
        float: right;
        margin-left: 50px;
      }
      .left {
        float: right;
      }
    </style>
  </head>
  <body>
    <div class="right">右</div>
    <div class="left">左</div>
  </body>
</html>
